package com.own.component.log.operation.core.impl;

import com.own.component.log.operation.core.ExtraLogOperationHook;
import com.own.constant.ConstantCommon;
import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean;
import org.springframework.stereotype.Component;

/**
 * ExtraLogOperationHookNoneImpl
 *
 * @author chenxueli
 * @date 2024-03-13 08:52:00
 */
@Component
@ConditionalOnMissingBean(name = "extraLogOperationHook")
public class ExtraLogOperationHookNoneImpl implements ExtraLogOperationHook {

    /**
     * 采集信息
     *
     * @return 采集信息
     */
    @Override
    public Object collect() {
        return null;
    }

    /**
     * 信息的名称
     *
     * @return 信息的名称
     */
    @Override
    public String name() {
        return ConstantCommon.NONE;
    }

}
